package com.frank.oj.service.team;


import com.frank.model.entity.contest.ContestProblem;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.dto.ContestProblemDTO;
import com.frank.oj.model.dto.ProblemDTO;

import java.util.HashMap;
import java.util.Map;

public interface GroupContestProblemService {

    public CommonResult<HashMap<String, Object>> getContestProblemList(Integer limit, Integer currentPage, String keyword, Long cid, Integer problemType, String oj);

    public CommonResult<Map<Object, Object>> addProblem(ProblemDTO problemDto);

    public CommonResult<ContestProblem> getContestProblem(Long pid, Long cid);

    public CommonResult<Void> updateContestProblem(ContestProblem contestProblem);

    public CommonResult<Void> deleteContestProblem(Long pid, Long cid);

    public CommonResult<Void> addProblemFromPublic(ContestProblemDTO contestProblemDto);

    public CommonResult<Void> addProblemFromGroup(String problemId, Long cid, String displayId);

}
